#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 23/23..."

tc=`java -jar Grades.jar 23 23`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 2: Testing 35/50..."

tc=`java -jar Grades.jar 35 50`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 3: Testing 42/67..."

tc=`java -jar Grades.jar 42 67`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
fi

echo "Test Case 4: Testing 100/100..."

tc=`java -jar Grades.jar 100 100`

if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
fi

echo "Test Case 5: Testing 5/20..."

tc=`java -jar Grades.jar 5 20`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 6: Testing -1/101..."

tc=`java -jar Grades.jar -1 101`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

